package com.itheima.d1_char_stream;

import java.io.FileWriter;
import java.io.IOException;

public class FileWriterTest3 {
    public static void main(String[] args) throws IOException {

        FileWriter fw = new FileWriter("bbb.txt", true);
            fw.write("hello");
            fw.write("风浪越大，鱼越贵", 1, 3);
            fw.write(System.lineSeparator());
            char[] arr = {'我', '不', '鹅', ',', '但', '还', '是', '想', '吃'};
            fw.write(arr, 4, 5);
//            fw.close();
            fw.write("嘻嘻");
        fw.flush();
    }

}
